<extend name="Public/base"/>

<block name="sidebar"></block>

<block name="style">
    <style>
        body{padding: 0;}
        ._title{width: 100%;height: 80px;line-height: 80px;font-size:24px;background-color: #f6f6f6;}
    </style>
</block>

<block name="body">
    <!-- 主体 -->
    <div id="indexMain" class="index-main" style=" background-color: #FFFFFF;">
       <!-- 插件块 -->
       <!--<div class="container-span">{:hook('AdminIndex')}</div>-->
        <div class="_title">{$_title}</div>
            <div class="data-table table-striped">
                <table class="">
                    <thead>
                    <tr>
                        <th class="">上课时间</th>
                        <th class="">课程</th>
                        <th class="">老师</th>
                        <th class="">状态</th>
                    </tr>
                    </thead>
                    <tbody>
                    <notempty name="_list">
                        <volist name="_list" id="vo">
                            <tr>
                                <td><span>{$vo.class_time|time_format}</span></td>
                                <td>
                                    <notempty name="vo.grade_id">
                                        {$vo.grade_id|_getGradeName}
                                        <else />
                                        {$vo.content}
                                    </notempty>
                                </td>

                                <td>{$vo.teacher_id|_getNickname}</td>
                                <td>
                                    <switch name="vo.step">
                                        <case value="1"><span style="color: #FFA500;">未备课</span></case>
                                        <case value="2"><span style="color: green;">已备课</span></case>
                                        <case value="3"><span style="color: #B0B0B0;">已完成</span></case>
                                    </switch>
                                </td>
                            </tr>
                        </volist>
                        <else/>
                        <td colspan="14" class="text-center"> aOh! 暂时还没有内容! </td>
                    </notempty>
                    </tbody>
                </table>
        </div>
    </div>
</block>

<block name="script">
<script type="text/javascript">
    /* 插件块关闭操作 */
    $(".title-opt .wm-slide").each(function(){
        $(this).click(function(){
            $(this).closest(".columns-mod").find(".bd").toggle();
            $(this).find("i").toggleClass("mod-up");
        });
    })
    $(function(){
        // $('#main').attr({'id': 'indexMain','class': 'index-main'});
        $('.copyright').html('<div class="copyright"> ©2018</div>');
        $('.sidebar').remove();
    })
</script>
</block>